#include "IWMem.h"



void* mem_malloc(size_t sz)
{
	M_Uint32 mID = MC_knlCalloc(sz) ;
	void *p = NULL;

	if(mID == 0) return NULL ;
	p = MC_GETDPTR(mID);

	return  p;
}


void mem_free(void *p)
{
	if(p == NULL) return ;

	MC_knlFree( MC_GETPTRID(p));
	p = NULL;
}




